﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Domain
{
    /// <summary>
    /// 图片
    /// </summary>
    [Table("Imgs")]
    public class Imgs
    {
        /// <summary>
        /// 图片id
        /// </summary>
        [Key]
        public int ImgsId {  get; set; }
        /// <summary>
        /// 图片名称
        /// </summary>
        public string? ImgsName { get; set; }
        /// <summary>
        /// 溯源表ID（外键）
        /// </summary>
        public int? TraceabilityId { get; set; }
        /// <summary>
        /// 保健信息表ID（外键）
        /// </summary>
        public int? HealthId { get; set; }
        /// <summary>
        /// 养殖企业ID（外键）
        /// </summary>
        public int? BreedEnterpriseId { get; set; }
        /// <summary>
        /// 屠宰信息表ID（外键）
        /// </summary>
    
        public int? SlaughterId { get; set; }
        /// <summary>
        /// 屠宰企业表ID（外键）
        /// </summary>
        public int? SlaughterEnterPriseId { get; set; }
        /// <summary>
        /// 深加工信息表id（外键）
        /// </summary>
   
        public int? ProcessId { get; set; }
        /// <summary>
        /// 原料信息ID（外键）
        /// </summary>

        public int? RawId { get; set; }
        /// <summary>
        /// 辅料信息ID（外键）
        /// </summary>

        public int? AuxiliaryId { get; set; }
        /// <summary>
        /// 添加剂信息ID（外键）
        /// </summary>
       
        public int? AdditiveId { get; set; }
        /// <summary>
        /// 包材ID(外键)
        /// </summary>
    
        public int? PackagingId { get; set; }
        /// <summary>
        /// 深加工企业ID（外键）
        /// </summary>
  
        public int? DeepEnterprisesId { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        public bool IsDel {  get; set; }=false;
        /// <summary>
        /// 生产批次
        /// </summary>
        public string? Batch { get; set; }








        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? delName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? delDate { get; set; }
    }
}
